<!DOCTYPE HTML>
<html>
  <head>
    <title>AgmLogs</title>
    <style>
            /* 
            Generic Styling, for Desktops/Laptops 
            */
            table { 
              width: 100%; 
              border-collapse: collapse; 
            }
            /* Zebra striping */
            tr:nth-of-type(odd) { 
              background: #eee; 
            }
            th { 
              background: #333; 
              color: white; 
              font-weight: bold; 
            }
            td, th { 
              padding: 6px; 
              border: 1px solid #ccc; 
              text-align: left; 
            }    
    </style>
  </head>
  <body>
    <table>
        <thead>
            <tr><th>DateTime</th>{% for a in attrs %}<th>{{a}}</th>{% endfor %}</tr>
        </thead>
        <tbody>
            {% for user in users %}
            <tr><td>{{logtime(user)}}</td>{% for a in attrs %}<td>{% if isinstance(user.get(a), list) %}{% for t in user.get(a) %}{{t}}|{% endfor %}{% else %}{{user.get(a)}}{% endif %} </td>{% endfor %}
            {% endfor %}
        </tbody>
    </table>
    {#{% for user in users%}
    {% for k in user._attributes %}
    {{k}}:{% if isinstance(user.get(k), list) %}{% for t in user.get(k) %}{{t}}|{% endfor %}{% else %}{{user.get(k)}}{% endif %}<br/>{% endfor %}----{{logtime(user)}}--{{user.id}}--<br/>{% endfor %}#}
  </body>
</html>


